package com.design.generic.keyed;

import com.design.generic.TestObject;
import org.apache.commons.pool2.KeyedPooledObjectFactory;
import org.apache.commons.pool2.impl.GenericKeyedObjectPool;
import org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig;

/**
 * 自定义对象池
 */
public class TestObjectKeyedPool extends GenericKeyedObjectPool<String, TestObject> {
    public TestObjectKeyedPool(KeyedPooledObjectFactory<String, TestObject> factory) {
        super(factory);
    }

    public TestObjectKeyedPool(KeyedPooledObjectFactory<String, TestObject> factory, GenericKeyedObjectPoolConfig<TestObject> config) {
        super(factory, config);
    }
}
